import request from '@/utils/request'

// 查询质检记录单列表
export function listNcQualityInspectionRecord(query) {
  return request({
    url: '/business/NcQualityInspectionRecord/list',
    method: 'get',
    params: query
  })
}

// 查询质检记录单详细
export function getNcQualityInspectionRecord(id) {
  return request({
    url: '/business/NcQualityInspectionRecord/' + id,
    method: 'get'
  })
}

// 新增质检记录单
export function addNcQualityInspectionRecord(data) {
  return request({
    url: '/business/NcQualityInspectionRecord',
    method: 'post',
    data: data
  })
}

// 修改质检记录单
export function updateNcQualityInspectionRecord(data) {
  return request({
    url: '/business/NcQualityInspectionRecord',
    method: 'put',
    data: data
  })
}

// 删除质检记录单
export function delNcQualityInspectionRecord(id) {
  return request({
    url: '/business/NcQualityInspectionRecord/' + id,
    method: 'delete'
  })
}
